#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int cnt[26];
int maxn,minn=100;
bool check(int x)
{
    if(x<2)
        return false;
    for(int i=2;i<=sqrt(x);i++)
    {
        if(x%i==0)
            return false;
    }
    return true;
}
int main() {
    string str;
    cin>>str;

    for(int i=0;i<str.size();i++)
    {
        cnt[str[i]-'a']++;
    }
    for(int i=0;i<26;i++)
    {
        maxn=max(maxn,cnt[i]);
        if(cnt[i]!=0)
            minn=min(minn,cnt[i]);
    }
    if(check(maxn-minn))
    {
        cout<<"Lucky Word"<<endl;
        cout<<maxn-minn<<endl;
    }
    else{
        cout<<"No Answer"<<endl;
        cout<<0<<endl;
    }
    return 0;
}
